package components;

import android.content.Context;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;

public class KeyboardManager {

	public static void showKeyboard (EditText edit, Context context) {
		InputMethodManager imgr = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
		imgr.showSoftInput(edit, 0);
	}
	
	public static void hideKeyboard (EditText edit, Context context) {
		InputMethodManager imm = (InputMethodManager)context.getSystemService(
			      Context.INPUT_METHOD_SERVICE);
			imm.hideSoftInputFromWindow(edit.getWindowToken(), 0);
	}
	
	
}
